﻿using System.Collections.ObjectModel;
using WpfAdvControls.Component;

namespace WpfAdvControls.AssemblyStarter
{
    public class AssemblyStartersContext
    {
        public static SettingsBase<AssemblyStartersContext> Settings =
            new SettingsBase<AssemblyStartersContext>("AssemblyStarters");

        public AssemblyStartersContext()
        {
            Starters = new ObservableCollection<AssemblyStarter>();
        }

        public ObservableCollection<AssemblyStarter> Starters { get; set; }

        public static AssemblyStartersContext GetCurrentStartersContext()
        {
            Settings.LoadSettings();
            return Settings.Settings;
        }
    }
}